Integrand size = 38, antiderivative size = 99 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {2 a \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.32 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {2920, 2819, 2816, 2746, 31} \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {\cos (e+f x) \sqrt {a \sin (e+f x)+a}}{c f \sqrt {c-c \sin (e+f x)}}-\frac {2 a \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 31
Rule 2746
Rule 2816
Rule 2819
Rule 2920
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {(a+a \sin (e+f x))^{3/2}}{\sqrt {c-c \sin (e+f x)}} \, dx}{a c} \\ & = -\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f \sqrt {c-c \sin (e+f x)}}+\frac {2 \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx}{c} \\ & = -\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f \sqrt {c-c \sin (e+f x)}}+\frac {(2 a \cos (e+f x)) \int \frac {\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ & = -\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f \sqrt {c-c \sin (e+f x)}}-\frac {(2 a \cos (e+f x)) \text {Subst}\left (\int \frac {1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ & = -\frac {2 a \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}-\frac {\cos (e+f x) \sqrt {a+a \sin (e+f x)}}{c f \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 2.62 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.16 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \sqrt {a (1+\sin (e+f x))} \left (-2 i f x+4 \log \left (i-e^{i (e+f x)}\right )+\sin (e+f x)\right )}{f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (c-c \sin (e+f x))^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(204\) vs. \(2(91)=182\).
Time = 0.20 (sec) , antiderivative size = 205, normalized size of antiderivative = 2.07
method | result | size |
default | \(-\frac {\left (\cos \left (f x +e \right ) \sin \left (f x +e \right )+2 \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right ) \sin \left (f x +e \right )-4 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \sin \left (f x +e \right )+\cos ^{2}\left (f x +e \right )-2 \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right ) \cos \left (f x +e \right )+4 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \cos \left (f x +e \right )+\sin \left (f x +e \right )-2 \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right )+4 \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-1\right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}{f \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right ) c \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}}\) | \(205\) |
[In]
[Out]
\[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=\int { \frac {\sqrt {a \sin \left (f x + e\right ) + a} \cos \left (f x + e\right )^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \cos ^{2}{\left (e + f x \right )}}{\left (- c \left (\sin {\left (e + f x \right )} - 1\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=\int { \frac {\sqrt {a \sin \left (f x + e\right ) + a} \cos \left (f x + e\right )^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.00 \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 2 \, \sqrt {2} \sqrt {c} \log \left ({\left | \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a}}{c^{2} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^2(e+f x) \sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {{\cos \left (e+f\,x\right )}^2\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]